package com.zoe.app.filter;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import javax.servlet.*;
import java.io.IOException;

/**
 * @author Zoe.Zhang
 * @date 2021/10/10
 * @description 使用FilterRegistrationBean 注册该Filter - 当前Filter不需要使用Component注解
 */
public class MyFilter7 implements Filter {
    private static final Logger log = LoggerFactory.getLogger(MyFilter7.class);

    @Override
    public void doFilter(ServletRequest servletRequest,
                         ServletResponse servletResponse,
                         FilterChain filterChain) throws IOException, ServletException {
        log.error("myFilter07-start");
        filterChain.doFilter(servletRequest, servletResponse);
        log.error("myFilter07 -end");
    }
}
